$(function() {
    //var swiper1 = new Swiper('.swiper-container', {
    //    pagination: '.swiper-pagination',
    //    nextButton: '.swiper-button-next',
    //    prevButton: '.swiper-button-prev',
    //    paginationClickable: true,
    //    spaceBetween: 30,
    //    centeredSlides: true,
    //    autoplay: 3000,
    //    autoplayDisableOnInteraction: false
    //});
    $('.topNav ul li').click(function() {
        var className = $(this).attr('data');
        console.log(className);
        var scollTop = $('.' + className).offset().top;
        console.log(scollTop);
        $('body,html').animate({
            scrollTop: scollTop - 75
        }, 500);
    })
})
$(document).ready(function() {
    $(".topNav ul li").each(function() {
        $(this).click(function() {
            $(".select").removeClass("select");
            $(this).addClass("select");
            //return false;//防止页面跳转
        });
    });
});